import pygame as pg

pg.init()
window = pg.display.set_mode((500, 500))
window.fill((255, 255, 255))
pg.draw.line(window, (255, 0, 0), (100, 50), (100, 350), 3)
points = [(10, 100), (50, 10), (90, 100), (140, 10)]
pg.draw.lines(window, (0, 0, 255), True, points, 3)


pg.display.flip()
while True:
    for event in pg.event.get():
        if event.type == pg.QUIT:
            exit()
